spring boot format time

270

the spring annotation for datetimeformat pattern -

@Entity
@Table(name = "pets")
public class Pet extends NamedEntity {
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private LocalDate birthDate;

Comments

Submit
0 Comments